<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>dom</title>
	<style type="text/css">
		.box{
			width: 200px;
			height: 200px;
			background: red url() 0 0 no-repeat;
			margin-top: 20px;
		}
	</style>

</head>
<body>
	<div class="box" id="box1" name='boxname'> </div>
	<div class="box" id="box2" onclick="alert('dfdfd')" name='boxname'> </div>

	<input type="text" id="input">

	<script type="text/javascript">
		// box = document.getElementById('box1');
		// box.onmouseover = function  (argument) {
		// 	alert(8888);
		// }
		// input = document.getElementById('input');

		// input.onmouseover  = function  (argument) {
		// 	alert(999);
		// }

		window.onresize= function  (argument) {
			var w=window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
			document.title = w;

		}

	</script>
</body>
</html>